/**
 * create by caijy 2019/11/30
 */
define(function () {
    var doc = document;
    var app = win.app, self, page,parameters


    app.newModule({

        init: function () {
            self = this;

            self._super({
                _readyBefore: function () {
                    parameters = self._pageParameters;
                    page = parameters.item;
                    self.data = {
                        NAME:page.NAME,
                        list: []
                    }
                }
            }, win);// 放在后边

        },
        getInfo: function () {
            app.ajax({
                xurl: 'api/wx/bftj/getInfo',
                xdata: {
                    GWBM001:page.GWBM001,
                    type:2,
                    startDate:parameters.startDate,
                    endDate:parameters.endDate
                },
                cb: function (res) {
                    if (res.ok) {
                        var data = res.data.data;
                        self.data.list = data;
                    }
                }
            })
        },
        _ready: function () {

            new Vue({
                el: doc.querySelector('.mui-content'),
                data: self.data,
                methods: {
                }
            });

            self.getInfo();

        },
        _lazy: function () {
            this._super();

            mui('.mui-scroll-wrapper').scroll({
                deceleration: 0.0005
            });
        }
    });

});

